package org.cloud.admin.auth.client.config;

import org.cloud.admin.auth.client.fallbackfactory.SysAuthClientFallbackFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Hystrix请求降级和快速失败FallbackFactory配置
 * @author wangyuan
 * @since 2019年6月3日 上午9:46:06
 *
 */
@Configuration
public class FallbackFactoryConfig {

	@Bean
	public SysAuthClientFallbackFactory sysAuthClientFallbackFactory() {
		return new SysAuthClientFallbackFactory();
	}
}
